package top.jolyoulu.modules.redismodule.lock;


import org.springframework.stereotype.Component;

/**
 * @Author LuZhouJin
 * @Date 2023/5/31
 * 默认的Key生成策略
 */
@Component
public class DefKetRule implements KeyRule {

    @Override
    public String getKey(String arg) {
        return String.valueOf(arg);
    }

    @Override
    public void LockFailure() {
        throw new RuntimeException("请勿重复提交！");
    }
}
